#{extends 'main.html' /}
#{set title:'Gönderilen İstekler' /}


<div class="message_menu">
<a href="/comingrequests" class="message_menu_a">Gelen İstekler</a> 
<a href="/sentrequests" class="message_menu_a_active">Gönderilen İstekler</a> 
</div>

<div class="message_top">

<div class="message_sender">
Kime
</div>

<div class="message_subject_req">
Seyahat
</div>

<div class="message_date_req">
Durum
</div>

</div>


<div class="message_list">
#{list items:user?.sentRequests, as:'sr'}
<div class="message_list_row">

<div class="message_list_sender">
<a href="/profile/${sr.user.id}" style="color: black; font-family: none;">${sr?.user?.name}</a>
</div>

<div class="message_list_subject_req">
<a href="/driverjourneydetails/${sr.journey.id}" style="color: black; font-family: none;">${sr?.journey?.departurestate} --> ${sr?.journey?.arrivestate} | ${sr?.journey?.departuredate?.format('dd/MM/yyyy')}</a>
</div>

<div class="message_list_date_req">
#{if !sr?.checked}
Bekliyor
#{/if}
#{else}
#{if sr?.isOk}
Kabul Edildi
#{/if}
#{else}
Reddedildi
#{/else}
#{/else}
</div>

</div>
#{/list}
</div>